import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/utils/element-ui'
import '@/utils/components'
import axios from '@/utils/request'
// import 'element-ui'
import VueStickyDirective from 'vue-sticky-directive'

Vue.use(VueStickyDirective)

Vue.config.productionTip = false
Vue.prototype.$axios = axios

router.beforeEach((to, from, next) => {
  document.title = to.meta.title || '太狼'
  next()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
